package com.yn.service.dao.zy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yn.common.model.zy.TDoctorInfoDO;
import com.yn.service.zy.model.dto.TDoctorInfoOutDTO;
import com.yn.service.zy.model.query.TDoctorInfoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TDoctorInfoMapper extends BaseMapper<TDoctorInfoDO> {
    /**
     * 分页获取专家列表
     * @param query
     * @param page
     * @return
     */
    IPage<TDoctorInfoOutDTO> listPageByQuery(@Param("query") TDoctorInfoQuery query, IPage page);

    /**
     * 获取专家详情
     * @param doctorId
     * @return
     */
    TDoctorInfoOutDTO getInfo(@Param("doctorId") Integer doctorId);
}
